/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package quizzempire.model;

import java.io.Serializable;

/**
 *
 * @author Victor
 */
public class Question implements IQuestion, Serializable {

    //---------- ATTRIBUTES ---------
    String name = "";
    String text = "";
    int indexCorrect = 0;
    int difficulty = 0;
    String[] answers = new String[4];

    //----------- METHODS ----------
    public Question(String name) {
        this.name = name;
    }

    @Override
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    @Override
    public int getIndexCorrect() {
        return indexCorrect;
    }

    public void setIndexCorrect(int indexCorrect) {
        this.indexCorrect = indexCorrect;
    }

    @Override
    public int getDifficulty() {
        return difficulty;
    }

    public void setDifficulty(int difficulty) {
        this.difficulty = difficulty;
    }

    @Override
    public String[] getAnswers() {
        return answers;
    }

    //addAnswer?
    public void setAnswers(String[] answers) {
        this.answers = answers;
    }

}
